package com.cn.designpatterns.ex.concrete.builder;

/**
 * @author zhangyi
 * @date 2018/12/24 14:56
 */
public class CreateAthlete implements CreateHumanService {

    private Human human;

    public CreateAthlete(Human human) {
        this.human = human;
    }

    @Override
    public void doHead() {
        human.setHead("集中注意力的头脑");
    }

    @Override
    public void doHand() {
        human.setHand("力量的手");
    }

    @Override
    public void doBody() {
        human.setBody("强健的身体");
    }

    @Override
    public void doFoot() {
        human.setFoot("敏捷的脚步");
    }

    @Override
    public Human builder() {
        return human;
    }
}
